<template>
<el-container>
  <el-header>
    <el-menu mode="horizontal" background-color="#409EFF" text-color="#ffffff" :router="true">
      <el-menu-item index="/index2/publish">我的发布</el-menu-item>
      <el-menu-item index="/index2/message">消息中心</el-menu-item>
      <el-menu-item index="/index2/apply">申请记录</el-menu-item>
      <el-menu-item index="/index2/interview">约面试</el-menu-item>
      <div style="float: right">
        <el-dropdown >
        <el-avatar  :src="user.imgUrl"></el-avatar>
          <span style="color: white">{{user.name}}</span>
          <el-dropdown-menu slot="dropdown">
            <el-dropdown-item>
              个人中心
            </el-dropdown-item><el-dropdown-item>
            退出
          </el-dropdown-item><el-dropdown-item>
            个人中心
          </el-dropdown-item>
          </el-dropdown-menu>

        </el-dropdown>
      </div>
    </el-menu>

  </el-header>
  <el-main>
    <router-view/>
  </el-main>
</el-container>
</template>

<script>
import {getuserinfo} from "@/mixin";

export default {
  name: "index",
  data(){
    return{

    }
  },
  mixins:[getuserinfo]
}
</script>

<style scoped>

</style>